package com.ta.gulimall.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum PurchaseDetailEnums {

    NEW(0, "新建"),
    ALLOT(1, "已分配"),
    PURCHASE(2, "正在采购"),
    ACCOMPLISH(3, "已完成"),
    FAIL(4, "采购失败");

    @JsonValue
    @EnumValue
    Integer code;
    String type;

    PurchaseDetailEnums(Integer code, String type) {
        this.code = code;
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
